quit -sim

set env(VIVADO_SIM)             F:/crack/vivado2017.4_questasim_10.6c_lib
vmap secureip                   $env(VIVADO_SIM)/secureip
vmap simprims_ver               $env(VIVADO_SIM)/simprims_ver
vmap unifast                    $env(VIVADO_SIM)/unifast
vmap unifast_ver                $env(VIVADO_SIM)/unifast_ver
vmap unimacro                   $env(VIVADO_SIM)/unimacro
vmap unimacro_ver               $env(VIVADO_SIM)/unimacro_ver
vmap unisim                     $env(VIVADO_SIM)/unisim
vmap unisims_ver                $env(VIVADO_SIM)/unisims_ver

vmap axis_infrastructure_v1_1_0 $env(VIVADO_SIM)/axis_infrastructure_v1_1_0
vmap axis_register_slice_v1_1_15 $env(VIVADO_SIM)/axis_register_slice_v1_1_15
vmap axis_subset_converter_v1_1_15 $env(VIVADO_SIM)/axis_subset_converter_v1_1_15

vlog -incr $env(VIVADO_SIM)/glbl.v;
vlog -incr -sv ../bench/stream_subset_conver_tb.sv

vlog -incr  ../ip/axis_subset_converter/hdl/axis_infrastructure_v1_1_vl_rfs.v
vlog -incr  ../ip/axis_subset_converter/hdl/axis_register_slice_v1_1_vl_rfs.v
vlog -incr  ../ip/axis_subset_converter/hdl/tdata_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/hdl/tuser_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/hdl/tstrb_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/hdl/tkeep_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/hdl/tid_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/hdl/tdest_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/hdl/tlast_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/hdl/axis_subset_converter_v1_1_vl_rfs.v
vlog -incr  ../ip/axis_subset_converter/hdl/top_axis_subset_converter.v
vlog -incr  ../ip/axis_subset_converter/sim/axis_subset_converter.v



#vlog +incdir+$env(UVM_SRC) -L mtiAvm -L mtiOvm -L mtiUvm -L mtiUPF hello_world.sv

vsim -t ps -novopt +notimingchecks \
                                    -L secureip \
                                    -L simprims_ver \
                                    -L unifast -L unifast_ver \
                                    -L unimacro -L unimacro_ver \
                                    -L unisim -L unisims_ver \
                                    -L axis_infrastructure_v1_1_0 \
                                    -L axis_register_slice_v1_1_15 \
                                    -L axis_subset_converter_v1_1_15 \
                                    glbl \
                                    work.stream_subset_conver_tb

#vsim -t ns -novopt -sv_lib $env(UVM_DPI) work.hello_world_example

log -r /*
radix 16

#view -title {wang} wave
#具体模块需要添加的信号
do wave.do

run 100us
